package homework;

public class Day03 {
    public static void main(String[] args) {
        /*System.out.println(8%10);//商0余8
        System.out.println(2%1);//商2余0
        System.out.println(3%3);//商1余0
        System.out.println(5%2);//商2余1*/

        /*int a=5;
        a++;//6
        ++a;//7
        --a;//6
        a--;//5
        System.out.println(a);*/
       /* int a = 5,b = 8;
        int c = a++;
        int d = --b;
        System.out.println(a);//6
        System.out.println(b);//7
        System.out.println(c);//a的值为5赋值给c，c为5，a自增1
        System.out.println(d);//b的值为b = b-1赋值给d，d为8，b自减1*/

        /*int a = 5,b = 8,c = 10;
        boolean b1 =a>b;
        System.out.println(b1);//false
        System.out.println(b>=a);//true
        System.out.println(b<=c);//true
        System.out.println(c<a);//false
        System.out.println(c<=b);//false
        System.out.println(c==a);//false
        System.out.println(c!=b);//true*/

        /*int a= 5,b = 10,c = 10;
        System.out.println(a%b==a);//true
        System.out.println(a+5>c);//false
        System.out.println(a++<=b);//true
        System.out.println(--a>=c);//false
        System.out.println(a--!=b);//true*/

        /*int a = 5,b = 3,c = 5;
        boolean b1 = a>=c && a<c;
        System.out.println(b1);//false
        System.out.println(b>a && b<c);//false
        System.out.println(b!=a && c==a);//true
        System.out.println(b>a && b==c);//false

        boolean b2 = a>b || a<c;
        System.out.println(b2);//true
        System.out.println(b>c || c==a);//true
        System.out.println(b<=a || c==a);//true
        System.out.println(b+3<c ||c%2>b);//false*/

        /*int a = 5,b = 6,c = 6;
        System.out.println(!(a>b));//!false=true
        System.out.println(!(a<b));//!true=false*/

       /* int a = 3,b = 5,c = 3;
        boolean b1 = a>c && a<b;//有false为false，后面发生短路了
        System.out.println(b1);

        boolean b2 = a<=b || a>b;//有true为true，后面发生短路了
        System.out.println(b2);

        System.out.println(a>c && a<b);
        System.out.println(a<=b || a>b);*/

       /* int a = 5;
        a+=5;//== a = a+5 == a+5=10
        System.out.println(a);//10

        a-=3;//== a = a-3 =7
        System.out.println(a);//7

        a*=2;//== a=a*2 =14
        System.out.println(a);//14

        a/=1;//== a=a/1 =14
        System.out.println(a);//14

        a%=2;//== a=a%2 = 0
        System.out.println(a);//0*/

        /*short s = 5;
        //s = s+10 //编译错误，两个整数相运算是会自动转为int型，正确改为 s = (short)(s+10);
        s+=5;//相当于s = (short)(s+10);*/

        int age = 22;
        System.out.println("age=");//age=
        System.out.println(age);//22
        System.out.println("我今年"+age+"岁了");//我今年22岁了


    }
}
